import request from '@/utils/request'

// 查询用户会话收藏列表
export function listUserFavorite(query) {
  return request({
    url: '/teenage/userFavorite/list',
    method: 'get',
    params: query
  })
}

// 查询用户会话收藏详细
export function getUserFavorite(id) {
  return request({
    url: '/teenage/userFavorite/' + id,
    method: 'get'
  })
}

// 新增用户会话收藏
export function addUserFavorite(data) {
  return request({
    url: '/teenage/userFavorite',
    method: 'post',
    data: data
  })
}

// 修改用户会话收藏
export function updateUserFavorite(data) {
  return request({
    url: '/teenage/userFavorite',
    method: 'put',
    data: data
  })
}

// 删除用户会话收藏
export function delUserFavorite(id) {
  return request({
    url: '/teenage/userFavorite/' + id,
    method: 'delete'
  })
}
